export const formRules = {
  replyType: [
    {
      required: true,
      message: '请选择',
      trigger: ['change', 'blur', 'submit']
    }
  ],
  modelNo: [
    {
      required: true,
      message: '请选择',
      trigger: ['change', 'blur', 'submit']
    }
  ],
  modelReportNo: [
    {
      required: true,
      message: '请输入',
      trigger: ['blur', 'submit', 'change']
    }
  ],
  emissionResult: [
    {
      required: true,
      message: '请输入',
      trigger: ['blur', 'submit', 'change']
    }
  ],
  num: [
    {
      required: true,
      message: '请输入',
      trigger: ['blur', 'submit', 'change']
    },
    {
      pattern: /[^((^\-?0+$)|(^\-?0+.0+$)|(^\-?.0+$))]/g,
      message: '核算数量不可为0',
      trigger: ['blur', 'submit', 'change']
    }
  ],
  weight: [
    {
      required: true,
      message: '请输入',
      trigger: ['blur', 'submit', 'change']
    },
    {
      pattern: /[^((^\-?0+$)|(^\-?0+.0+$)|(^\-?.0+$))]/g,
      message: '单位重量不可为0',
      trigger: ['blur', 'submit', 'change']
    }
  ],
  baseYear: [
    {
      required: true,
      message: '请选择',
      trigger: ['blur', 'submit', 'change']
    }
  ],
  manufactureAddress: [
    {
      required: true,
      message: '请输入',
      trigger: ['blur', 'submit', 'change']
    }
  ],
  accountBoundary: [
    {
      required: true,
      message: '请选择',
      trigger: ['blur', 'submit', 'change']
    }
  ],
  code: [
    {
      required: true,
      message: '请输入',
      trigger: ['blur', 'submit', 'change']
    }
  ],
  arRules: [
    {
      required: true,
      message: '请输入',
      trigger: ['blur', 'submit', 'change']
    }
  ],
  caName: [
    {
      required: true,
      message: '请输入',
      trigger: ['blur', 'submit', 'change']
    }
  ],
  reportName: [
    {
      required: true,
      message: '请上传',
      trigger: ['blur', 'submit', 'change']
    }
  ]
};
